#ifndef SLAVE_LOGGER_PROTOCOL_H_
#define SLAVE_LOGGER_PROTOCOL_H_

/*
 * Logger slave .
 * This slave is used to record log message sending from other source
 * The possible usage of this logger protocol is wrapped such information
 * into the message msg area and sends out.
 */
struct slave_logger_protocol {
	/* The logger protocol type means what kind of log information it sends out 
	 * You can specified 4 type of message:
	 * INFO --> Information
	 * WARN --> Warning 
	 * ERROR--> Error
	 * FATAL--> Fatal Error
	 * Based on different type of information, different logging strategy will be
	 * used .
	 */
	const char* type;
	const char* content;
};

static const char* _slave_logger_info_level = "INFO";
static const char* _slave_logger_warn_level = "WARN";
static const char* _slave_logger_error_level= "ERROR";
static const char* _slave_logger_fatal_level= "FATAL";

#endif // SLAVE_LOGGER_PROTOCOL_H_